public class Book {
    String name;
    String author;

    double price;

    Boolean isBorrow;

    public Book(){

    }

    public Book(String name, String author, double price, Boolean isBorrow) {
        this.name = name;
        this.author = author;
        this.price = price;
        this.isBorrow = isBorrow;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setBorrow(Boolean borrow) {
        isBorrow = borrow;
    }


    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", isBorrow=" + isBorrow +
                '}';
    }
}